home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2005 October / PCWOCT05.iso / Software / FromTheMag / Syn Text Editor 2.1.0.46 / synsetup-2.1.0.46.exe / {app} / templates / Java / Swing Application.java < prev   
Encoding:
Java Source  |  2003-06-27  |  623 b   |  34 lines

  1. //Description: Java Swing Application|
  2. /* Created: {$DateTime} by {$UserName}
  3. **
  4. **
  5. */
  6.  
  7. import java.awt.event.*;
  8. import javax.swing.*;
  9.  
  10. public class {$FileTitleNoExt} extends JFrame
  11. {
  12.  
  13.   public {$FileTitleNoExt}()
  14.   {
  15.     addWindowListener(new WindowAdapter()
  16.     {
  17.       public void windowClosing(WindowEvent e)
  18.       {
  19.         dispose();
  20.         System.exit(0);
  21.       }
  22.     });
  23.   }
  24.  
  25.   public static void main(String[] args)
  26.   {
  27.     {$FileTitleNoExt} frame = new {$FileTitleNoExt}();
  28.     frame.setSize(500, 400);
  29.     frame.setTitle("{$FileTitleNoExt}");
  30.     frame.setVisible(true);
  31.   }
  32.  
  33.  
  34. }